<%--
   zTree
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>


<%@ attribute name="enable" required="false" type="java.lang.Boolean"
	description="true / false 分别表示 可以 / 不可以 编辑;默认false"%>

<%@ attribute name="editNameSelectAll" required="false"
	type="java.lang.Boolean"
	description="节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]；默认值: false"%>

<%@ attribute name="removeTitle" required="false"
	type="java.lang.Boolean"
	description="节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]；默认值: false"%>

<%@ attribute name="renameTitle" required="false"
	type="java.lang.Boolean"
	description="编辑名称按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]；默认值：rename"%>

<%@ attribute name="showRemoveBtn" required="false"
	type="java.lang.String"
	description="删除按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]；默认值：remove"%>

<%@ attribute name="showRenameBtn" required="false"
	type="java.lang.String"
	description="设置是否显示编辑名称按钮。[setting.edit.enable = true 时生效]"%>

<c:set var="edit" scope="request" value="{'edit':'true'" />

<c:if test="${not empty enable}">
	<c:set var="edit" value="${edit},'enable':${enable }" scope="request" />
</c:if>
<c:if test="${not empty editNameSelectAll}">
	<c:set var="edit" value="${edit},'editNameSelectAll':${editNameSelectAll }"
		scope="request" />
</c:if>

<c:if test="${not empty removeTitle}">
	<c:set var="edit" value="${edit},'removeTitle':${removeTitle }" scope="request" />
</c:if>

<c:if test="${not empty renameTitle}">
	<c:set var="edit" value="${edit},'renameTitle':${renameTitle }" scope="request" />
</c:if>

<c:if test="${not empty showRemoveBtn}">
	<c:set var="edit" value="${edit},'showRemoveBtn':${showRemoveBtn }" scope="request" />
</c:if>

<c:if test="${not empty  showRenameBtn}">
	<c:set var="edit" value="${edit},'showRenameBtn':${showRenameBtn }" scope="request" />
</c:if>

<c:set var="edit" scope="request" value="${edit}}" />
